﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace MyPublisher.Service
{
    public interface IPublishServiceClient : IPublishService, IClientChannel
    {
    }

    public class PublishServiceClient : ClientBase<IPublishServiceClient>, IPublishService
    {
        public PublishServiceClient(){}

        public PublishServiceClient(string endpointConfigurationName) 
            :base(endpointConfigurationName)
        { }

        public string Publish(PublishInfo info)
        {
            return base.Channel.Publish(info);
        }

        public byte[] Download(string documentId)
        {
            return base.Channel.Download(documentId);
        }
    }
}
